package self.hoy.demo.grainmall.product;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;
import self.hoy.demo.grainmall.EnableRedisSession;

@RefreshScope
@EnableRedisSession// 启用redis整合session共享
@EnableDiscoveryClient
@SpringBootApplication//(exclude = {DruidDataSourceAutoConfigure.class})
@EnableFeignClients("self.hoy.demo.grainmall.product.feign")
public class GrainmallProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(GrainmallProductApplication.class, args);
    }

}
